Manually Parsing Plain Text In Node.js